<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"
	xmlns:layout="http://www.ultraq.net.nz/web/thymeleaf/layout">
<head th:replace="dashboard/header :: header"></head>
<body>

	<!--
@desc 节假日设置 添加
@author WeiXiaoJin
@since 2019-12-28 09:39:27
-->
	<div layout:fragment="content">
		<div class="container-fluid content-main">
			<div class="animated fadeIn">
				<div class="row">
					<!-- /.col-->
					<div class="col-sm-12">
						<div class="card">
							<div class="card-body">
								<form class="form-horizontal" id="addForm">

									<div class="form-group row margin-right-0">
										<label class="col-md-2 col-form-label control-label"
											for="text-input">所属应用</label>
										<div class="col-md-9">
											<input class="form-control" id="applicationIdLabel"
												type="text" onclick="showApplication()"
												name="applicationIdLabel" readonly="readonly"
												style="cursor: pointer" placeholder="所属应用"> <input
												type="hidden" name="applicationId" />
										</div>
									</div>

									<div class="form-group row">
										<label class="col-md-2 col-form-label control-label">日期字符</label>
										<div class="col-md-9">
											<div class="input-group date">
												<span class="input-group-addon"><i
													class="fa fa-calendar"></i></span> 
												<input type="text"
													class="form-control time-input" id="laydate-demo-3"
													name="holidaysDate" 
													data-type="date"
													data-format="yyyy-MM-dd"
													placeholder="yyyy-MM-dd" lay-key="3">
											</div>
										</div>
									</div>
									<div class="form-group row">
										<label class="col-md-2 col-form-label control-label">属性</label>
										<div class="col-md-9">
											<div class="radio">
												<label> 
													<input type="radio" name="holidays" value="0">非节假日
												</label>
												<label> 
													<input type="radio" name="holidays" value="1" checked="checked">节假日
												</label> 
											</div>
										</div>
									</div>
								</form>
							</div>
						</div>
					</div>
					<!-- /.col-->
				</div>
			</div>
		</div>

	</div>

	<footer th:replace="dashboard/footer :: footer"></footer>
	<script type="text/javascript" th:src="@{/resources/js/project.js}"></script>

	<script type="text/javascript">
	
		$(function(){
			$('#addForm').validate({
				ignore: [],  
				rules: {
					applicationId: "required",
					holidaysDate: "required"
				}
			});
		}) ;
		
		function submitHandler() {
			var result = $.validate.form("addForm");
			if(result){
				var saveUrl = ctx + "portal/ucenter/holidays/save";
				$.operate.save(saveUrl, $('#addForm').serialize());
			}
		}
	</script>

</body>
</html>


